﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaInfrastructure;



namespace NSCore
{


    [Serializable]
    public class TimedGridResult:FEntity
    {

        public TimedGridResult(FEntityCollection _timeDivides,GridReceptor gr):base(gr.Id)
        {
            this.Desc = gr.Desc;

            foreach (TimeDivision item in _timeDivides.Entities)
            {

                GridResult result = new GridResult(item.Id, gr);

                result.Desc = item.Desc;


                this._childrens.Add((TimeDivision)item.Clone(),result);


                

            }
 
        }




        Dictionary<TimeDivision, GridResult> _childrens = new Dictionary<TimeDivision, GridResult>();

        public Dictionary<TimeDivision, GridResult> Childrens
        {
            get { return _childrens; }
           
        }









    }
}
